package com.bdsoft.actions.noticeManage.DAO;

import com.bdsoft.actions.noticeManage.DTO.NoticeDTO;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

@Mapper
public interface NoticeMapper {

    Map<String, Object> selectNoticeById(String id);

    List<Map<String, Object>> selectNoticeList(@Param("title") String title,
                                               @Param("status") Integer status);

    int insertNotice(NoticeDTO noticeDTO);

    int updateNotice(NoticeDTO noticeDTO);

    int publishNotice(String id);

    int revokeNotice(String id);

    int deleteNotice(String id);

    int batchDeleteNotice(@Param("ids") List<String> ids);
}